<?php

	require_once(realpath(dirname(__FILE__)) . "/Baseobj.class.php");

class Promoutil extends Baseobj{

	var $id;
	var $promo;
	var $commande;

	const TABLE="promoutil";
		var $table=self::TABLE;

	var $bddvars = array("id","promo","commande");

	function __construct(){
		parent::__construct();
	}

	function charger($id){
		return $this->getVars("select * from $this->table where id=$id");
	}

	function charger_commande($commande){
		return $this->getVars("select * from $this->table where commande=$commande");
	}
}

?>